package com.commom.utils;

import java.util.Map;

/**
 * Created by _Mumu on 15/7/28.
 */

public class APIUtils {

    /* 成功 */
    public final static String SUCCESS = "Success";

    /* 失败 */
    public final static String FAILD = "Faild";

    private static APIUtils ourInstance = new APIUtils();

    public static APIUtils getInstance() {
        return ourInstance;
    }

    private APIUtils() {
    }

    public static Object Success(Map<String, Object> map) {
        map.put("result_code", new Integer(1));
        return map.put("result_msg", APIUtils.SUCCESS);
    }

    public static Object Faild(Map<String, Object> map) {
        map.put("result_code", new Integer(0));
        return map.put("result_msg", APIUtils.FAILD);
    }
}
